package cn.ztelovecly.codegeneratorplugin.component;

import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.ui.Messages;
import org.jetbrains.annotations.NotNull;

/**
 * Created by zhaotianen on 2017/2/26.
 */
public class AppComponent implements ApplicationComponent {
    public AppComponent() {
    }

    @Override
    public void initComponent() {
        // TODO: 2017/2/26 添加初始化配置
    }

    @Override
    public void disposeComponent() {
        // TODO: 2017/2/26  添加处理配置


    }

    @NotNull
    @Override
    public String getComponentName() {
        return AppComponent.class.getName();
    }


    /**
     * 说Hello World!
     */
    public void sayHelloWorld() {
        Messages.showMessageDialog(
                "Hello World!",
                "第一个插件示例",
                Messages.getInformationIcon()

        );

    }
}
